﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneStationFile.Model
{
    public class Node
    {
        public Node() {
            Roles = new HashSet<Role>();
            //Modular = new Modular();
        }
        public virtual int Id { get; set; }
        [Display(Name = "名称")]
        public virtual string Name { get; set; }
        [Display(Name = "url地址")]
        public virtual string Url { get; set; }
        [Display(Name = "控制器")]
        public virtual string Controller { get; set; }
        [Display(Name = "方法")]
        public virtual string Action { get; set; }
        [Display(Name = "是否显示")]
        public virtual Common.ListOfEnum.IsShow IsShow { get; set; }
        [Display(Name = "父级")]
        public virtual int ParentId { get; set; }
        [Display(Name = "级别")]
        public virtual Common.ListOfEnum.NodeLevelD NodeLevelD { get; set; }
        [Display(Name ="角色")]
        public virtual ISet<Role> Roles { get; set; }
        [Display(Name = "模块")]
        public virtual Modular Modular { get; set; }
    }
   
}
